Page({

  /**
   * 页面的初始数据
   */
  data: {
    swiper: {
      "message": [
        {
        "image_src":"https://xiaomage.tech/pyg/banner1.png",
        "open_type":"navigate","goods_id":129,
        "navigator_url":"/pages/goods_detail/main?goods_id=129"
      },{
        "image_src":"https://xiaomage.tech/pyg/banner2.png",
        "open_type":"navigate",
        "goods_id":395,
        "navigator_url":"/pages/goods_detail/main?goods_id=395"
      },{
        "image_src":"https://xiaomage.tech/pyg/banner3.png",
        "open_type":"navigate","goods_id":38,
        "navigator_url":"/pages/goods_detail/main?goods_id=38"
      }],
      "meta": {
        "msg": "获取成功",
        "status": 200
      }
    },
      msg:"(*^_^*)",
      id:0,
      condition:false,
      text:"搜索",
      arr:[1,2,3,4,5,6,7,8,9],
      islogin:false,
      books:['Reavt由浅入深','Vue由浅入深'],
      str:'您未登录'
      
  },
  getPhoneNumber:function(e){
   console.log(e);
  },
  handleGetUserInfo:function(e){
    wx.getUserProfile({
      desc:'用来完善用户的个人信息',
      success:function(res){
        console.log(res);
      },
      fail:(err)=>{
        console.log(err);
      },
      complete:function(){
        console.log('执行了getUserProfile函数');
      }
    })
  },
  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    
  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {
    
  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {
    
  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function () {
    
  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function () {
    
  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function () {
    
  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {
    
  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {
    
  }
})